package com.jfs.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description 用户表
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/8/5
 */
@Data
@TableName("t_user")
@KeySequence(value = "customIdGenerator")
@ApiModel(description = "用户表")
public class User {
    @ApiModelProperty(value = "用户主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty(value = "用户角色id")
    private String roleId;
    @ApiModelProperty(value = "用户账号")
    private String username;
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "手机号码")
    private String phone;
    @ApiModelProperty(value = "真实姓名")
    private String nickName;
    @ApiModelProperty(value = "最后一次登录时间")
    private Date lastLoginTime;
    @ApiModelProperty(value = "账号失效时间(秒) 0为永久")
    private long expirTime;
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty("是否启用 默认1 启用 0禁用")
    private Boolean enable;
}
